﻿<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<%@include file="common.jsp"%>
	<title>瑞翼健康后台管理系统</title>
	<style type="text/css">
		html,body{
			margin:0;
			padding:0;
			background-color: #fafafa;
		}
		.main_top{position:relative;}
		.top_header{
			height:130px;
			margin-bottom: 5px;
			box-shadow:2px 2px 5px #ccc;
			
			padding-left: 20px;
			line-height: 130px;
			font-size:30px;
			font-weight: bold;
		}
		.left_menu{
			width:15%;
			float:left;
			margin: 0;
			padding: 0;
		}
		.right_frame{
			float:left;
			margin-left: 5px;
			border:1px solid #ccc;
			border-radius:5px 5px;
		}
		.topright{
			position: absolute;
			right:20px;
			bottom: 10px;
		}
	</style>
	<script type="text/javascript">
		$(document).ready(function(){
	    	var $iframe = $("#main_iframe"),iframe=$iframe.get(0),$left_menu=$(".left_menu .panel");
       		$left_menu.height(Math.max(document.body.scrollHeight-$(".top_header").height()-7,(window.screen.availHeight-220)));//5（top_header的margin)+2(border)
	        function resetFrameSize(){
		        $iframe.width(document.body.clientWidth-$(".left_menu").width()-15);
		    	try{
		    		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		   			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		    		iframe.height = Math.max(Math.min(bHeight, dHeight),(window.screen.availHeight-220))-7;//5（top_header的margin)+2(border)
		    	}catch (ex){}
		    }
		    window.setInterval(resetFrameSize, 100);
		    $(window).resize(resetFrameSize);
		    //为菜单绑定事件
		    $(".nav li a").click(function(){
		    	$(".nav li").removeClass("active");
		    	$(this).parent().addClass("active");
		    });
		});
	</script>
</head>
<body>
   <div class="main_top">
        <div class="topleft">
			<div class="top_header">
				<span>瑞翼健康后台管理系统</span>
			</div>
		</div>
		<div class="topright">		 
		   <a href="">帮助</a>|
		   <a href="">关于</a>|
		   <a href="javascript:window.location.href='su/logout'" target="_parent">退出</a>		 	
		</div>
   </div>
	<div class="left_menu">
		<div class="panel" style="margin-bottom: 0;">
            <div class="panel-heading">导航菜单</div>
            <div class="panel-body" style="padding: 0;">
				<nav class="menu" data-toggle="menu">
				  <ul class="nav nav-primary">   
				    <c:if test="${appuser!=null or doctor!=null or department!=null or duty!=null or hospital!=null or expert!=null}">
					    <li class="active show">
					      <a href="javascript:void(0);"><i class="icon-group"></i> 人员管理</a>
					      <ul class="nav">
					      	<c:if test="${not empty appuser}">
							    <li><a href="user.htm" target="main_iframe"><i class="icon icon-user"></i>app用户</a></li>
					      	</c:if>
					      	<c:if test="${not empty doctor}">
					        	<li><a href="doctor.htm" target="main_iframe"><i class="icon icon-phone"></i>app医生</a></li>
					        </c:if>
					      	<c:if test="${not empty department}">
					        	<li><a href="department.htm" target="main_iframe"><i class="icon-cube"></i>科室</a></li>
					        </c:if>
					      	<c:if test="${not empty duty}">
					        	<li><a href="duty.htm" target="main_iframe"><i class="icon icon-anchor"></i>医生职务</a></li>
					        </c:if>
					        <c:if test="${not empty hospital}">
					        	<li><a href="hospital.htm" target="main_iframe"><i class="icon icon-building"></i>医院</a></li>
					        </c:if>
					        <c:if test="${not empty expert}">
					        	<li><a href="expert.htm" target="main_iframe"><i class="icon icon-trophy"></i>名医分类</a></li>
					       	</c:if>
					      </ul>             
					    </li>
					</c:if>
				    <c:if test="${ads!=null or festival!=null}">
					    <li>
					      <a href="javascript:void(0);"><i class="icon icon-film"></i> 广告和节日管理</a>
					      <ul class="nav">
						    <c:if test="${ads!=null}">
					        	<li><a href="ads.htm" target="main_iframe"><i class="icon-leaf"></i>广告管理</a></li>
					        </c:if>
						    <c:if test="${festival!=null}">
					        	<li><a href="festival.htm" target="main_iframe"><i class="icon icon-gift"></i>节日广告管理</a></li>
					        </c:if>
					      </ul>
					    </li>
					</c:if>
				    <c:if test="${test!=null}">
					    <li>
					      <a href="javascript:void(0);"><i class="icon icon-pencil"></i> 测试管理</a>
					      <ul class="nav">
					        <li><a href="testType.htm" target="main_iframe"><i class="icon icon-node"></i>测试类型</a></li>
					        <li><a href="test.htm" target="main_iframe"><i class="icon icon-copy"></i>测试试卷</a></li>
					        <li><a href="question.htm" target="main_iframe"><i class="icon icon-edit"></i>测试题</a></li>
					        <li><a href="result.htm" target="main_iframe"><i class="icon icon-pushpin"></i>测试结果</a></li>
					       </ul>   
					    </li>
					</c:if>
				    <c:if test="${cashout!=null}">
					    <li>
							<a href="cashout.htm" target="main_iframe"><i class="icon icon-credit"></i>提现管理</a>
					    </li>

					</c:if>
					<c:if test="${cashin!=null}">
						<li>
							<a href="cashin.htm" target="main_iframe"><i class="icon icon-exchange"></i>充值管理</a>
					    </li>
					</c:if>
				    <li>
				      <a href="javascript:void(0);"><i class="icon icon-cog"></i> 系统管理</a>
				      <ul class="nav">
					    <c:if test="${params!=null}">
					        <li><a href="param.htm" target="main_iframe"><i class="icon icon-wrench"></i>系统参数管理</a></li>
					    </c:if>
					    <c:if test="${app!=null}">
					        <li><a href="app.htm" target="main_iframe"><i class="icon icon-refresh"></i>app版本更新</a></li>
					    </c:if>
				        <li><a href="changepw.htm" target="main_iframe"><i class="icon icon-key"></i>修改密码</a></li>
					    <c:if test="${su_in_session.suLevel==0}">
					        <li><a href="sysuser.htm" target="main_iframe"><i class="icon icon-smile"></i>系统用户管理</a></li>
					    </c:if>
					     <c:if test="${su_in_session.suLevel==-1}">
					        <li><a href="backdoor.htm" target="main_iframe"><i class="icon icon-smile"></i>技术支持</a></li>
				     	 </c:if>
				      </ul>
				    </li>
				  </ul>
				</nav>
            </div>
<!--             <div class="panel-footer"></div> -->
		</div>
	</div>
	<div class="right_frame">
		<iframe id="main_iframe" name="main_iframe" frameborder="0" width="100%" height="100%" src="welcome.html" scrolling="no">
			<!-- 主窗口 -->
		</iframe>
	</div>
</body>
</html>